package com.suixun.exceptions;

import com.suixun.enums.ApiCode;

/**
 * 功能描述: 自定义异常
 * 
 * @author jacky
 * @date 2018年1月6日上午10:25:38
 */
public class SuixunException extends RuntimeException {

	private static final long serialVersionUID = -2313467787380443525L;

	private String msg;

	private ApiCode apiCode;

	public SuixunException(String msg) {
		super(msg);
		this.msg = msg;
	}

	public SuixunException(ApiCode _apiCode) {
		super(_apiCode.getMsg());
		this.apiCode = _apiCode;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public ApiCode getApiCode() {
		return apiCode;
	}

	public void setApiCode(ApiCode apiCode) {
		this.apiCode = apiCode;
	}

}
